package gui;

import java.awt.BorderLayout;
import java.awt.LayoutManager;

import javax.swing.JLabel;
import javax.swing.JPanel;

import org.scilab.forge.jlatexmath.TeXConstants;
import org.scilab.forge.jlatexmath.TeXFormula;
import org.scilab.forge.jlatexmath.TeXIcon;

public class JPOutputPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	TeXFormula formule;
	TeXIcon teXIcon;
	JLabel test,test2;
	
	
	public JPOutputPanel() {
		paintTest();
	}

	public JPOutputPanel(LayoutManager layout) {
		super(layout);
		// TODO Auto-generated constructor stub
	}

	public JPOutputPanel(boolean isDoubleBuffered) {
		super(isDoubleBuffered);
		// TODO Auto-generated constructor stub
	}

	public JPOutputPanel(LayoutManager layout, boolean isDoubleBuffered) {
		super(layout, isDoubleBuffered);
		// TODO Auto-generated constructor stub
	}
	
	
	
	public void paintTest(){
		formule = new TeXFormula("Tadada un panel qui fait rien");
		teXIcon = formule.createTeXIcon(TeXConstants.ALIGN_LEFT,18.0f,TeXFormula.SANSSERIF);
		test = new JLabel(teXIcon);
		setLayout(new BorderLayout());
		add(test, BorderLayout.CENTER);
		
	}

}
